#define  _CRT_SECURE_NO_WARNINGS



#include<stdio.h>


int main()
{
	int arr[10] = { 0 }, i = 0, count = 0;
	double avg = 0;
	for (i = 0; i < 10; i++)
	{
		scanf("%d", &arr[i]);
		avg += arr[i];
	}
	avg /= 10;
	for (i = 0; i < 10; i++)
	{
		if (arr[i] > avg)
			count++;
	}
	printf("%d\n", count);
	return 0;
}